package cn.rkylin.oms.system.user.event;

import cn.rkylin.oms.common.context.CurrentUser;
import cn.rkylin.oms.common.event.BusinessEvent;
import cn.rkylin.oms.common.event.EventHandler;
import cn.rkylin.oms.common.event.EventTypeCodeEnum;

/**
 * 用户登录之后事件
 * 
 * @author wangxiaoyi
 * @since 2017-04-13 19:04
 */
@SuppressWarnings("rawtypes")
public class AfterUserLoginEvent extends BusinessEvent<EventHandler> {

	private CurrentUser currUser;

	public AfterUserLoginEvent(CurrentUser currUser) {
		this.currUser = currUser;
	}

	public CurrentUser getCurrUser() {
		return currUser;
	}

	public void setCurrUser(CurrentUser currUser) {
		this.currUser = currUser;
	}

	@Override
	public EventTypeCodeEnum getAssociatedType() {
		return EventTypeCodeEnum.AFTER_USER_LOGIN;
	}
}
